/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package biz.noorlander.bat.model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 *
 * @author niels
 */
@Entity
public class Area implements Serializable {

    private Integer id;
    private String name;
    private Continent continent;
    private Coordinates continentCoords;
    private Coordinates globalCoords;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    @Column(name = "continent", nullable = true, length = 20)
    @Enumerated(EnumType.STRING)
    public Continent getContinent() {
        return continent;
    }

    public void setContinent(Continent newContinent) {
        this.continent = newContinent;
    }

    public Coordinates getContinentCoords() {
        return continentCoords;
    }

    public void setContinentCoords(Coordinates continentCoords) {
        this.continentCoords = continentCoords;
    }

    public Coordinates getGlobalCoords() {
        return globalCoords;
    }

    public void setGlobalCoords(Coordinates globalCoords) {
        this.globalCoords = globalCoords;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
